/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VeranstaltungsVerwaltung.java
 *
 * Created on 17.03.2011, 09:10:59
 */

package bzr_veranstaltungverwaltung;

import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author fhiesl
 */
public class bzr_vaVerwaltung extends javax.swing.JFrame {

    /** Creates new form VeranstaltungsVerwaltung */
    public bzr_vaVerwaltung() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem_Neu = new javax.swing.JMenuItem();
        jMenuItemLöschen = new javax.swing.JMenuItem();
        jMenuItem_va_anzeigen = new javax.swing.JMenuItem();
        jMenuItemMA_VA = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jMenu1.setText("Datei");

        jMenuItem_Neu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));
        jMenuItem_Neu.setText("Veranstaltung erstellen");
        jMenuItem_Neu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_NeuActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem_Neu);

        jMenuItemLöschen.setText("Veranstaltung löschen");
        jMenuItemLöschen.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemLöschenActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItemLöschen);

        jMenuItem_va_anzeigen.setText("Veranstaltungen anzeigen");
        jMenuItem_va_anzeigen.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_va_anzeigenActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem_va_anzeigen);

        jMenuItemMA_VA.setText("Mitarbeiter Veranstaltungen zuweisen");
        jMenuItemMA_VA.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemMA_VAActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItemMA_VA);

        jMenuBar1.add(jMenu1);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 442, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 306, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenuItem_NeuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem_NeuActionPerformed
        try {
            // TODO add your handling code here:
            bzr_vaNeuVeranstaltung neu = new bzr_vaNeuVeranstaltung();
            neu.setVisible(true);
        } catch (InstantiationException ex) {
            Logger.getLogger(bzr_vaVerwaltung.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(bzr_vaVerwaltung.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(bzr_vaVerwaltung.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }//GEN-LAST:event_jMenuItem_NeuActionPerformed

    private void jMenuItem_va_anzeigenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem_va_anzeigenActionPerformed
        try {
            // TODO add your handling code here:
            bzr_vaAnzeigenVA a = new bzr_vaAnzeigenVA();
            a.setVisible(true);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(bzr_vaVerwaltung.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(bzr_vaVerwaltung.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(bzr_vaVerwaltung.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jMenuItem_va_anzeigenActionPerformed

    private void jMenuItemMA_VAActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMA_VAActionPerformed
        try {
            // TODO add your handling code here:
            bzr_MA_VA_Hinzufügen m = new bzr_MA_VA_Hinzufügen();
            m.setVisible(true);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(bzr_vaVerwaltung.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(bzr_vaVerwaltung.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(bzr_vaVerwaltung.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jMenuItemMA_VAActionPerformed

    private void jMenuItemLöschenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemLöschenActionPerformed
        try {
            // TODO add your handling code here:
            bzr_vaLoeschenVeranstaltung loeschen = new bzr_vaLoeschenVeranstaltung();
            loeschen.setVisible(true);
        } catch (InstantiationException ex) {
            Logger.getLogger(bzr_vaVerwaltung.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(bzr_vaVerwaltung.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(bzr_vaVerwaltung.class.getName()).log(Level.SEVERE, null, ex);
        }

    }//GEN-LAST:event_jMenuItemLöschenActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new bzr_vaVerwaltung().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItemLöschen;
    private javax.swing.JMenuItem jMenuItemMA_VA;
    private javax.swing.JMenuItem jMenuItem_Neu;
    private javax.swing.JMenuItem jMenuItem_va_anzeigen;
    // End of variables declaration//GEN-END:variables

}
